package com.xwdeshj.entity;

import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.util.Date;

/**
 * 农家乐——农家游玩类型
 */
@Entity(name = "xw_farm_playtype")
public class XwFarmPlaytype {

    /**
     * 农家游玩类型id
     */
    @Column(name = "farm_palyType_id")
    private Integer farmPalytypeId;

    /**
     * 农家乐游玩类型加密id
     */
    @Column(name = "farm_playType_encryptId")
    private String farmPlaytypeEncryptid;

    /**
     * 农家乐类型（内容）
     */
    @Column(name = "farm_playType_desc")
    private String farmPlaytypeDesc;

    /**
     * 更新时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "farm_playType_updatetime")
    private Date farmPlaytypeUpdatetime;

    /**
     * 提交时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "farm_playType_createtime")
    private Date farmPlaytypeCreatetime;

    public XwFarmPlaytype(){

    }

    public XwFarmPlaytype(String farmPlaytypeEncryptid, String farmPlaytypeDesc, Date farmPlaytypeUpdatetime, Date farmPlaytypeCreatetime) {
        this.farmPlaytypeEncryptid = farmPlaytypeEncryptid;
        this.farmPlaytypeDesc = farmPlaytypeDesc;
        this.farmPlaytypeUpdatetime = farmPlaytypeUpdatetime;
        this.farmPlaytypeCreatetime = farmPlaytypeCreatetime;
    }

    /**
     * 获取农家游玩类型id
     *
     * @return farm_palyType_id - 农家游玩类型id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Integer getFarmPalytypeId() {
        return farmPalytypeId;
    }

    /**
     * 设置农家游玩类型id
     *
     * @param farmPalytypeId 农家游玩类型id
     */
    public void setFarmPalytypeId(Integer farmPalytypeId) {
        this.farmPalytypeId = farmPalytypeId;
    }

    /**
     * 获取农家乐游玩类型加密id
     *
     * @return farm_playType_encryptId - 农家乐游玩类型加密id
     */
    public String getFarmPlaytypeEncryptid() {
        return farmPlaytypeEncryptid;
    }

    /**
     * 设置农家乐游玩类型加密id
     *
     * @param farmPlaytypeEncryptid 农家乐游玩类型加密id
     */
    public void setFarmPlaytypeEncryptid(String farmPlaytypeEncryptid) {
        this.farmPlaytypeEncryptid = farmPlaytypeEncryptid;
    }

    /**
     * 获取农家乐类型（内容）
     *
     * @return farm_playType_desc - 农家乐类型（内容）
     */
    public String getFarmPlaytypeDesc() {
        return farmPlaytypeDesc;
    }

    /**
     * 设置农家乐类型（内容）
     *
     * @param farmPlaytypeDesc 农家乐类型（内容）
     */
    public void setFarmPlaytypeDesc(String farmPlaytypeDesc) {
        this.farmPlaytypeDesc = farmPlaytypeDesc;
    }

    /**
     * 获取更新时间
     *
     * @return farm_playType_updatetime - 更新时间
     */
    public Date getFarmPlaytypeUpdatetime() {
        return farmPlaytypeUpdatetime;
    }

    /**
     * 设置更新时间
     *
     * @param farmPlaytypeUpdatetime 更新时间
     */
    public void setFarmPlaytypeUpdatetime(Date farmPlaytypeUpdatetime) {
        this.farmPlaytypeUpdatetime = farmPlaytypeUpdatetime;
    }

    /**
     * 获取提交时间
     *
     * @return farm_playType_createtime - 提交时间
     */
    public Date getFarmPlaytypeCreatetime() {
        return farmPlaytypeCreatetime;
    }

    /**
     * 设置提交时间
     *
     * @param farmPlaytypeCreatetime 提交时间
     */
    public void setFarmPlaytypeCreatetime(Date farmPlaytypeCreatetime) {
        this.farmPlaytypeCreatetime = farmPlaytypeCreatetime;
    }

    @Override
    public String toString() {
        return "XwFarmPlaytype{" +
                "farmPalytypeId=" + farmPalytypeId +
                ", farmPlaytypeEncryptid='" + farmPlaytypeEncryptid + '\'' +
                ", farmPlaytypeDesc='" + farmPlaytypeDesc + '\'' +
                ", farmPlaytypeUpdatetime=" + farmPlaytypeUpdatetime +
                ", farmPlaytypeCreatetime=" + farmPlaytypeCreatetime +
                '}';
    }
}